package org.lu.hypervisor.android.persist;

import android.content.Context;

import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;

@Database(entities = {User.class}, version = 1, exportSchema = false)
public abstract class AppDatabase extends RoomDatabase {
    public abstract UserDao userDao();
    public static AppDatabase getDb(Context context){
        return  Room.databaseBuilder(context,
                AppDatabase.class, "userDB").build();
    }
}
